import { createApp } from 'vue';
import 'vant/lib/index.css';
import './assets/css/style.css';
import App from './App.vue';
import store from './store';
import router from './router';
import { Button,NavBar,Tabbar,TabbarItem,Checkbox,Toast,Icon,Popup,Swipe, SwipeItem,List,PullRefresh,ActionBarIcon,Search,
    Loading,Field,SwipeCell,Uploader,Form,ActionSheet,DatePicker,Picker,CheckboxGroup,Dialog,Switch,RadioGroup, Radio } from 'vant';
import './utils/rem';

const app = createApp(App);
app.use(router);
app.use(store);
// 注册vant组件
([Button, NavBar, Tabbar, TabbarItem,Checkbox,Toast,Icon,Popup,Swipe, SwipeItem,List,PullRefresh,ActionBarIcon,Search,
    Loading,Field,SwipeCell,Uploader,Form,ActionSheet,DatePicker,Picker,CheckboxGroup,Dialog,Switch,RadioGroup, Radio]).forEach((comp) => {
    app.use(comp);
});
app.mount('#app');
